import Main from '@/views/main'
import Hello from '@/components/HelloWorld'
import User from '@/views/user'
import Student from '@/views/student'
import Home from '@/views/home'
import UserInfo from '@/views/userinfo'
import Page from '@/views/page'

const routes=[
	{
		path:'/home',
		component:Home,
		iconCls:'el-icon-service',
		name:'用户信息',
		children:[
					{path:'/userInfo',name:'查询用户',component:UserInfo},
					{path:'/page1',name:'查询用户1',component:Page},
					{path:'/page2',name:'新建用户',component:Page},
				]
	},
	{
		path:'/main',
		name:'我的主页',
		component:Main,
		iconCls:'el-icon-view',
	},
	{
		path:'/hello',
		name:'我是hello',
		component:Hello,
		iconCls:'el-icon-document',
		/*children:[
			{path:'user',component:User},
			{
				path:'student',
				component:Student,
				children:[
					{path:'page1',component:{template:'<h2>我是page1</h2>'}},
					{path:'page2',component:{template:'<h2>我是page2</h2>'}},
				]


			}
		]*/
	},
	
	{
		path:'*',
		hidden:true,
		component:{
			template:'<h2>404</h2>'
		}
	}
];


export default routes;